﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace VehicleManagement.Codes
{
    public class VehicleManagementDataContextManager
    {
        private static readonly string connString = SqlMapperManager.Instance.Get().DataSource.ConnectionString;

        private static VehicleManagementDataContext mInstance = null;

        public static VehicleManagementDataContext Instance
        {
            get
            {
                if (mInstance == null)
                    mInstance = new VehicleManagementDataContext(connString);
                return mInstance;
            }
        }
    }
}